﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using CqusInfo.DAL.Permissions;

namespace CqusInfo.BLL.Permissions
{
    public class User_FunctionBLL:Inteface.IUser_FunctionBLL
    {
        private static readonly User_FunctionDAL ufDal = new User_FunctionDAL();
        public Int32 GetCounts(bool isDel)
        {
            return ufDal.GetCounts(isDel);
        }

        public Int32 Add(RAL.Permissions.User_FunctionModel model)
        {
            return ufDal.Add(model);
        }

        public Int32 Update(string ufId, RAL.Permissions.User_FunctionModel model)
        {
            return ufDal.Update(ufId, model);
        }

        public Int32 Delete(string ufId)
        {
            return ufDal.Delete(ufId);
        }

        public List<RAL.Permissions.User_FunctionModel> Query(string ufId)
        {
            return ufDal.Query(ufId);
        }

        public List<RAL.Permissions.User_FunctionModel> Query(Int32 page, Int32 takeItem)
        {
            return ufDal.Query(page, takeItem);
        }
    }
}
